package com.book.core.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ReaderBorrowBookDTO {
    /**
     *图书id列表
     */
    @NotEmpty(message = "图书id列表不能为空")
    private List<Long> bookIdList;
    /**
     *借书者
     */
    @NotNull(message = "读者id不能为空")
    private Long readerId;
}
